<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title id="t1">07-v-show 选择显示与否</title>
</head>
<body>
	<h2>v-show 选择显示状态</h2>
	<div id="app1" class="capp1">
		<div v-show="isShow">{{ name }}</div>
		<div v-show="isShow">{{ msg }}</div>
		<ul>
			<!-- 条件判断 -->
			<li v-show="scores[5]>4">{{scores[5]}}</li>
			<li v-show="scores[4]>4">{{scores[4]}}</li>
			<li v-show="scores[3]>4">{{scores[3]}}</li>
			<li v-show="scores[2]>4">{{scores[2]}}</li>
			<li v-show="scores[1]>4">{{scores[1]}}</li>
			<li v-show="scores[0]>4">{{scores[0]}}</li>
		</ul>
	</div>

	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	<script>
		var data = {
				msg:"Hi There!",
				name:"Sa_Zhang",
				scores:[9,5,7,3,6,1],
				isShow:false // 可见性设置
			}
		// new Vue({}) 大小写敏感
		var app = new Vue({
			el:"#app1",
			data:data
		})
	</script>

</body>
</html>